package com.songcha.library_business.api

import com.songcha.library_business.config.NetworkConfig.Companion.BASE_URL
import com.songcha.library_network.api.RetrofitClient

object ApiManager {
    val api by lazy {
        return@lazy RetrofitClient.createApi(BASE_URL,ApiService::class.java){
            it.addInterceptor(MyInterceptor.getInstance())
        }
    }

    val api_timeout15 by lazy {
        return@lazy RetrofitClient.createApiByTimeout(BASE_URL,
            ApiService::class.java,15,15,15){
            it.addInterceptor(MyInterceptor.getInstance())
        }
    }

    val Api_timeout60 by lazy {
        return@lazy RetrofitClient.createApiByTimeout(BASE_URL,
            ApiService::class.java,60,60,60){
            it.addInterceptor(MyInterceptor.getInstance())
        }
    }
}